/*
*Copyright 2021-2023 NERCIS
*
*Licensed under the Apache License, Version 2.0 (the "License");
*you may not use this file except in compliance with the License.
*You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*Unless required by applicable law or agreed to in writing, software
*distributed under the License is distributed on an "AS IS" BASIS,
*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*See the License for the specific language governing permissions and
*limitations under the License.
*/

package cn.ac.nercis.pes.model.dto.manage;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户信息类
 * @author zpy
 * @version 1.0.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserDTO {
    /**
     * 用户ID
     */
    private String id;
    /**
     * 登录账号
     */
    private String username;
    /**
     * 用户名
     */
    private String displayName;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 电话
     */
    private String phone;
    /**
     * 所属角色ID
     */
    private String roleId;
    /**
     * 所属角色名
     */
    private String roleName;
    /**
     * 是否可用
     */
    private Boolean activated;
    /**
     * 是否服务端用户
     */
    private Boolean webServer;
    /**
     * 用户类型（本地用户、服务端用户）
     */
    private String type;
}